<?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite) ? (include $this->template('header', TEMPLATE_INCLUDEPATH)) : (include template('header', TEMPLATE_INCLUDEPATH));?>
<style>
img{width:100%!important;}
#gallery{
	overflow:hidden;
}
#gallery li{
	display:inline-block;
	width:50%;
	-webkit-box-sizing:border-box;
	float:left;
	border-radius:0;
	background:none;
	padding:5px;
	border:0;
	box-shadow:none;
}
#gallery li a{
	display:block;
	background-color: #ffffff;
	border: 1px solid #ffffff;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border-radius: 2px;
	cursor: pointer;
	padding: 4px;
	box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
	-webkit-box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
	height:120px;
	overflow:hidden;
	position:relative;
}
#gallery li a p{
	position:absolute;
	width:100%;
	bottom:0;
	background:#fff;
	line-height:30px;
	padding-right: 10px;
	-webkit-box-sizing:border-box;
	z-index: 100;
	left: 0;
	word-break:break-all; 
	word-wrap:break-word;
	white-space: nowrap;
}
#gallery li a img{
	width:100%;
	min-height:100%;
}
.album li p>span, .album1 li p>span, .album2 li p>span {
	float: right;
	color: #aaa;
	position: absolute;
	right: 5px;
	background: #fff;
	padding-left: 5px;
}
#gallery li p {
	display: inline-block;
	max-width: 100%;
	opacity:0.8;
}
</style>
<div id="photo">
	<div class="body">
		<div id="main">
			<ul id="gallery" class="gallery">

				<?php  if(is_array($list)) { foreach($list as $item) { ?>
				<li style="">
					<a href="<?php  echo $this->createMobileUrl('index', array('themeid' => $item['id'], 'weid' => $_W['weid'],'whoshare'=> $_W ['fans'] ['from_user']))?>">
						<?php  if($item['themelogo']) { ?><img src="<?php  echo $_W['attachurl'];?><?php  echo $item['themelogo'];?>" alt="<?php  echo $item['themetitle'];?>" /><?php  } else { ?><img src="<?php  echo $_W['siteroot'].$this->geturl(1);?>" width="180" /><?php  } ?>
						<p style="color: red;"><?php  echo $item['themename'];?></p>
					</a>
				</li>
				<?php  } } ?>
			</ul>
		</div>
	</div>
</div>